package net.dodoman.passby;

public final class Test4 {
	String temp;
	String abc = "abc";

	String getTemp() {
		return temp;
	}

	void setTemp(String string) {
		this.temp = string;
	}

	void refrenObj(Test4 t4) {
		t4.setTemp("after set");
		Test4 t4New = new Test4();
		//t4 = t4New;
		t4.abc = "cba";
		t4New.setTemp("after set and do =");
		t4 = t4New;
	}

	public static void main(String args[]) {
		Test4 t4 = new Test4();
		t4.setTemp("before set");
		t4.refrenObj(t4);
		System.out.println(t4.getTemp());
		System.out.println(t4.abc);
	}
}
